<!doctype html>
<html>
    <head>
        <meta charset="UTF-8">
        <!--<script src="system-service.js"></script>-->
        <!-- 引入样式 -->
        <link rel="stylesheet" href="css/element.ui.css">
    </head>
    <body>
        <div id="app">
            <el-button @click="eat" type="danger">退出程序</el-button>
            <el-button @click="sayMethod" type="primary">说话</el-button>
        </div>
    </body>
    <!-- 先引入 Vue -->
    <script src="jslib/vue.min.js"></script>
    <!-- 引入组件库 -->
    <script src="jslib/element.ui.js"></script>
    <script>
        var v = new Vue({
            el : "#app",
            data : {},
            methods : {
                eat : function(){
                    system.exit();
                },
                sayMethod : function(){
                    var data = system.say(2,"说话");
                    alert(data)
                }
            }
        });

        function showAlert(){
            var i = 0 ;
            while(true){
                alert(i++);
            }

        }
    </script>
</html>